package org.dromara.exam.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.exam.domain.entity.ExamTag;
import org.dromara.exam.enums.TagTypeEnum;

import java.io.Serial;
import java.io.Serializable;


/**
 * 统一标签视图对象 exam_tag
 *
 * @author xiyin321
 * @date 2024-04-17
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ExamTag.class)
public class ExamTagVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 标签ID
     */
    @ExcelProperty(value = "标签ID")
    private Long tagId;

    /**
     * 标签类型
     */
    @ExcelProperty(value = "标签类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "exam_tag_type")
    private TagTypeEnum tagType;

    /**
     * 标签名称
     */
    @ExcelProperty(value = "标签名称")
    private String tagName;

    /**
     * 标签数量
     */
    private int tagCount;
}
